Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add friend list support #271

Merged
merged 15 commits into from
Apr 28, 2024

Conversation

mjsalerno
Copy link
Contributor

Adds support for friend lists

  • supports friend requests
  • friend request denial
  • friend removal
  • adding a friend to favorites
  • online status tracking

image

Checklist:

  • The project compiles
  • The PR targets develop branch

Copy link
Collaborator

@pacampbell pacampbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Left just a few nitpick remarks about some comments and newlines.

Should we consider renaming the NTC packets? or leave them as is incase they are in some of the decrypted traces?

public override void Write(IBuffer buffer, S2CCharacterCommunityCharacterStatusGetRes obj)
{
WriteInt32(buffer, obj.Result);

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: remove newline. Same request in other places.

Copy link
Collaborator

@alborrajo alborrajo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good PR, almost ready to be merged

@mjsalerno mjsalerno requested a review from alborrajo April 28, 2024 21:02
@alborrajo alborrajo requested a review from pacampbell April 28, 2024 21:46

foreach (var f in friends)
{
if (f.Type != ContactListType.FriendList || f.Status != ContactListStatus.Accepted) continue;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of these kind of unbracketed if statements. I've seen a lot of bugs where some other person comes to change and then made a mistake due to this kind of style. If Laith is ok with this though, then it is fine.


foreach (var f in friends)
{
if (f.Type != ContactListType.FriendList) continue;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above.

@mjsalerno mjsalerno force-pushed the feature/friend-list branch from 8a16cf2 to 9fc092b Compare April 28, 2024 22:55
@alborrajo alborrajo merged commit a752656 into sebastian-heinz:develop Apr 28, 2024
1 check passed
@mjsalerno mjsalerno deleted the feature/friend-list branch April 29, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants